<?php if(!isset($this->breadcrumbsData)){
    $this->breadcrumbsData = array(
        array(
            'text' => 'Главная',
            'link' => ''
        )
    );
}
$treeItemCount = count($this->breadcrumbsData)-1;
?>

<div>
   <div class="breadcrumbs bar corner-all">
        <ul class="breadcrumbs-content">
        	<?php $first = reset($this->breadcrumbsData);?>
        		<li><a href="<?= $first['link'] ?>" class="icons-16 icon-16-home"><?= $first['text'] ?></a></li>
        	<?php for ($i = 1; $i < $treeItemCount; ++$i):?>
    	        <li><a href="<? $this->breadcrumbsData[$i]['link']; ?>" class="icons-16"><? $this->breadcrumbsData[$i]['text']; ?></a></li>
            <?php endfor;?>
            <?php if($treeItemCount>1):?>
            <?php $last = end($this->breadcrumbsData);?>
	        	<li class="last"><span class="icons-16"><?= $first['text'] ?></span></li>
	        <?php endif;?>
        </ul>
    </div>
    <div class="depression"></div>
</div>